<%@ page language="java" contentType="text/html;charset=UTF-8"%>
<%@ include file="/commons/taglibs.jsp"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<%@ include file="/commons/commonList.jsp"%>
<script type="text/javascript">
    function resize(){
		parent.window.document.all('personMainFrame').style.height=document.body.scrollHeight;

	}
	function removePerson(userCode){
	 document.getElementById("userCode").value=userCode;
	  document.removeForm.submit();
	}

	function setRecordCount(){
	parent.setCurrentCount(${totalRecord});
	}
   setRecordCount();
</script>
</head>
<body onload="resize();">
<form  name="removeForm" id="removeForm" action="${ctx}/common_employeeQuery.do?method=removePerson" method="post">
<input type="hidden" name="userCode" value="">
</form>
<div    class="tab_bgline" >
<div style="overflow:auto; height:480px;">

	  <ec:ceTable items="personList"
	action="${ctx}/common_employeeQuery.do?method=hadSelectPersonList"
	var="personItem"
	view="pmsNoPageView"
	styleClass="gridData2"
	rowsDisplayed="${totalRows}" >
	<ec:ceRow styleClass="grid"  ondblclick="removePerson('${personItem.userCode}');">
		<ec:ceColumn headerCell="pmsHeadrCell" title="员工姓名" property="employeeName" sortable="true" width="50%" />
		<ec:ceColumn headerCell="pmsHeadrCell" title="所在部门" property="dept" width="50%"/>

	</ec:ceRow>
</ec:ceTable>

 </div>
 </div>


</body>
</html>